package com.upay.android.domain.group;

import java.io.Serializable;
import java.math.BigDecimal;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.upay.android.domain.user.User;

public class GroupAccount implements Serializable {

	/* ---- Constants ---- */
	private static final long serialVersionUID = 201203032116L;
	public final static String NAME = GroupAccount.class.getName();
	
	/* ---- Instance Variables ----*/

	private BigDecimal balance = null;
	private Group group = null;
	private User user = null;
	
	/* ---- Constructors ---- */
	
	public GroupAccount() {
		super();
	}
	
	public GroupAccount(
		BigDecimal balance,
		Group group,
		User user) {
		this.balance = balance;
		this.group = group;
		this.user = user;
	}
		
	/* ---- Business Methods ---- */
	
    public String toString() {
    	return new ToStringBuilder(this)
            .appendSuper(super.toString())
            .append("balance", balance)
    		.append("group", group.toString())
    		.append("user", user.toString())
            .toString();
    }

	/* ---- Getters and Setters ----*/
	
	public BigDecimal getBalance() {
		return balance;
	}

	public void setBalance(BigDecimal balance) {
		this.balance = balance;
	}

	public Group getGroup() {
		return group;
	}

	public void setGroup(Group group) {
		this.group = group;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}	
	
}
